home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK2.toast / Development Kits (Disc 2) / QuickTime / Programming Stuff / Documentation / develop articles / develop Issue 21 / GetCodecInfoApp ƒ / SpinCursor.h < prev   
Encoding:
C/C++ Source or Header  |  1997-02-26  |  992 b   |  43 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        SpinCursor.h
  3.     
  4.     Contains:    Cursor code.
  5.  
  6.     Written by:    John Wang (And Think Reference people)
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <1>        11/15/94    JW        New.
  13.  
  14.     To Do:
  15.     
  16. */
  17.  
  18. #ifdef THINK_C
  19. #define        applec
  20. #endif
  21.  
  22. #define countingHand    1000    //    id of the 'acur' resource 
  23. #define watchCursor        1002
  24. #define beachBall        1003
  25. #define movieStrip         1004
  26.  
  27. #define rate            12        //    Make the animation faster by decreasing the rate and slower
  28.                                 //    by increasing the rate
  29.  
  30. #define HiWrd(aLong)    (((aLong) >> 16) & 0xFFFF)
  31.  
  32. typedef struct {
  33.     short        numberOfFrames;    //    number of cursors to animate
  34.     short        whichFrame;        //    current frame number
  35.     CursHandle    frame[];        //    Pointer to the first cursor
  36. } acur, *acurPtr, **acurHandle;
  37.  
  38. /* ------------------------------------------------------------------------- */
  39.  
  40. Boolean        InitAnimatedCursors(short acurID, short interval);
  41. void        ReleaseAnimatedCursors(void);
  42. void        SpinCursor(void );
  43.